<?php
class search_data extends connection{
    //put your code here
    function timkiem($tim){
        $query = "SELECT * FROM articles WHERE title LIKE '%$tim%' OR body LIKE '%$tim%'";
        $data = $this->laydulieu($query);
        return $data;
    }
}


